﻿#ifndef BULLET_H
#define BULLET_H

#include <QPixmap>



class Bullet
{
public:
    Bullet();
    void updatePostion();
    bool getIsFree() const;
    void setIsFree(bool value);
    int getPostionX() const;
    void setPostionX(int value);
    int getPostionY() const;
    void setPostionY(int value);

    QPixmap getBullet() const;
    void setBullet(const QPixmap &value);

    QRect getBulletRect() const;

private:
    int postion_x;
    int postion_y;
    int speed;
    bool is_free;
    QPixmap bullet;
    QRect bulletRect;
};

#endif // BULLET_H
